<%-- 
    Document   : main_com.controlers.lookMessage
    Created on : 2012-3-20, 23:13:38
    Author     : Administrator
--%>

<%@page import="main_com.pojo.LookMessageBean" %>
<%@page import="java.util.ArrayList" %>
<%@page contentType="text/html" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>个人信息管理系统--查看个人信息</title>
</head>
<body bgcolor="CCCFFF">
<hr noshade>
<div align="center">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
        <tr>
            <td width="33%">
                <a href="http://localhost/lookMessage/updateMessage.jsp">修改个人信息</a>
            </td>
            <td width="33%">
                查看个人信息
            </td>
            <td width="33%">
                <a href="http://localhost/lookMessage/updatePassword.jsp">修改密码</a>
            </td>
        </tr>
    </table>
</div>
<hr noshade>
<br><br>
<table border="2" cellspacing="0" cellpadding="0" bgcolor="#95BDFF" width="60%" align="center">
    <%
        ArrayList wordlist = (ArrayList) session.getAttribute("wordlist");
        if (wordlist == null || wordlist.size() == 0) {
            response.sendRedirect("http://localhost/main/bottom.jsp");
        } else {
            for (int i = wordlist.size() - 1; i >= 0; i--) {
                LookMessageBean mm = (LookMessageBean) wordlist.get(i);
    %>
    <tr>
        <td height="30">用户姓名</td>
        <td><%=mm.getName()%>
        </td>
    </tr>
    <tr>
        <td height="30">用户性别</td>
        <td><%=mm.getSex()%>
        </td>
    </tr>
    <tr>
        <td height="30">出生日期</td>
        <td><%=mm.getBirth()%>
        </td>
    </tr>
    <tr>
        <td height="30">用户民族</td>
        <td><%=mm.getNation()%>
        </td>
    </tr>
    <tr>
        <td height="30">用户学历</td>
        <td><%=mm.getEdu()%>
        </td>
    </tr>
    <tr>
        <td height="30">用户类型</td>
        <td><%=mm.getWork()%>
        </td>
    </tr>
    <tr>
        <td height="30">用户电话</td>
        <td><%=mm.getPhone()%>
        </td>
    </tr>
    <tr>
        <td height="30">家庭住址</td>
        <td><%=mm.getPlace()%>
        </td>
    </tr>
    <tr>
        <td height="30">邮箱地址</td>
        <td><%=mm.getEmail()%>
        </td>
    </tr>
    <%
            }
        }
    %>
</table>
</body>
</html>
